package com.example.phpclient;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class firstpage_activity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_first);
        Button btnsu = (Button) findViewById(R.id.btn_stu);//登录
        Button btnman=(Button)findViewById(R.id.btn_manager);//注册

        btnsu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {//登录
                Intent intent = new Intent(firstpage_activity.this,Login_activity.class);
                startActivity(intent);
            }
        });
        btnman.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {//注册
                Intent intent = new Intent(firstpage_activity.this,register_activity.class);
                startActivity(intent);
            }
        });
    }
}
